//
//  QRCodeViewController.h
//  BaoGongBao
//
//  Created by User on 14/11/18.
//  Copyright (c) 2014年 irule. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@protocol QRCodeViewControllerDelegate <NSObject>

- (void)QRCodeViewControllerDelegateFinish:(id)sender;

@end

@interface QRCodeViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate>
{
	int num;
	BOOL upOrdown;
	NSTimer * timer;
}
@property (strong,nonatomic)AVCaptureDevice * device;
@property (strong,nonatomic)AVCaptureDeviceInput * input;
@property (strong,nonatomic)AVCaptureMetadataOutput * output;
@property (strong,nonatomic)AVCaptureSession * session;
@property (strong,nonatomic)AVCaptureVideoPreviewLayer * preview;
@property (nonatomic, retain) UIImageView * line;

@property (nonatomic, strong) id<QRCodeViewControllerDelegate> delegate;

@end
